package org.jsystemtest.tests_proj;

import java.util.ArrayList;
import java.util.List;

public class MyObject {

	private List<EventI> listeres = new ArrayList<EventI>();

	public void addLister(EventI listener) {
		listeres.add(listener);
	}

	public void removeLister(EventI listener) {
		listeres.remove(listener);
	}

	public void somethingInterestingHappend(String str) {
		for (EventI listenr : listeres) {
			listenr.receiveEvent(str);
		}
	}

}
